<?php

/*
 * This file is part of PHP CS Fixer.
 *
 * (c) wangyt <wangtom365@gmail.com>
 *
 * This source file is subject to the MIT license that is bundled
 * with this source code in the file LICENSE.
 */

namespace App\Models;

class WebsiteModel extends BaseModel
{
    /**
     * Indicates if the model should be timestamped.
     *
     * @var bool
     */
    public $timestamps = false;
    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'ks_rank_websites';

    public function __construct()
    {
    }

    public function getHotList()
    {
        $where = [
            'status' => 1,
        ];
        $result = $this->getList($where);

        return (isset($result['data']) && $result['data']) ? $result['data'] : [];
    }
}
